package com.njts.Polymorphism.computer;

/**
 * @author David GE
 * Date  2025/11/20
 */
public class DeviceTest {
    public static void main(String[] args) {
        // 父类引用指向子类对象->多态
        USB usb =new Computer();
        USB usb2 =new KeyBoard();
        USB usb3 =new Mouse();
        usb.open();
        usb2.open();
        usb3.open();
    }
}
